package com.lottery.material.entity.conf;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Description：运营充值记录表
 * Created by 朱正磊 on 2019-04-09 10:23
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_operation_buy_record")
public class OperationBuyRecord extends BaseEntity {

    private static final long serialVersionUID = 2942022337936369257L;

    @Column(columnDefinition = "varchar(50) not null comment '运营用户id'")
    private String userId;

    @Column(columnDefinition = "decimal(19,2) comment '充值金额'")
    private BigDecimal buyAmount;

    @Column(columnDefinition = "varchar(255) comment '备注（填写如：充值这笔钱用于做什么）'")
    private String remark;

}
